#!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time    : 2021/7/28 11:43
# @Author  : ldh

from basic.device.Android import Android


class AGXDataSecretaryPage(Android):

    @classmethod
    def openDataSecretaryPage(cls):
        cls.poco(text="数据秘书").click()

    @classmethod
    def getPageView(cls):
        pageView=cls.poco(text="授权数据").wait(3)
        if pageView.exists():
            return True
        else:
            return False

    #打开授权数据页
    @classmethod
    def openAuthData(cls):
        cls.poco(text="sjms_ic_sqgl.ec96e13b76890be61fec71867651a6ab").wait(3).click()
        print("查看数据授权页")










